package de.andreavicentini.teatralia.pages.repertoire;

import org.magiclabs.htmlx.TextStructure;

import de.andreavicentini.teatralia.generate.PlayRenderer;
import de.andreavicentini.teatralia.pages.IRenderer;
import de.andreavicentini.teatralia.pages.TDate;

public class Play extends Lesung  {

	public Play(String title, Author author, TDate date, TextStructure.TextKey description) {
		this(title, author, date, description, null);
	}
	
	public Play(String title, Author author, TDate date, TextStructure.TextKey description, String image) {
		super(title, description, image);
		this.author = author;
		this.date = date;
	}
	
	@Override
	public IRenderer<IPlay> getRenderer() {
		return new PlayRenderer();
	}
	
	@Override
	public String getStyle() {
		return "person";
	}
	
	
	private final TDate date;
	public TDate getDate() {
		return date;
	}
	
	private final Author author;
	public Author getAuthor() {
		return author;
	}



}
